// Bayesian Network
//   Elvira format 

bnet  "Lluvia" { 

// Network Properties

kindofgraph = "directed";
visualprecision = "0.00";
version = 1.0;
default node states = ("presente" , "ausente");

// Variables 

node Lluvia(finite-states) {
kind-of-node = chance;
type-of-variable = finite-states;
pos_x =88;
pos_y =111;
relevance = 7.0;
purpose = "";
num-states = 2;
states = ("si" "no");
}

node Lluviat(finite-states) {
kind-of-node = chance;
type-of-variable = finite-states;
pos_x =401;
pos_y =98;
relevance = 7.0;
purpose = "";
num-states = 2;
states = ("si" "no");
}

node Paraguat(finite-states) {
kind-of-node = chance;
type-of-variable = finite-states;
pos_x =473;
pos_y =266;
relevance = 7.0;
purpose = "";
num-states = 2;
states = ("si" "no");
}

// Links of the associated graph:

link Lluvia Lluviat;

link Lluviat Paraguat;

//Network Relationships: 

relation Lluvia { 
comment = "";
kind-of-relation = potential;
deterministic=false;
values= table (0.5 0.5 );
}

relation Lluviat Lluvia { 
comment = "";
kind-of-relation = potential;
deterministic=false;
values= table (0.7 0.3 0.3 0.7 );
}

relation Paraguat Lluviat { 
comment = "";
kind-of-relation = potential;
deterministic=false;
values= table (0.9 0.2 0.1 0.8 );
}

}
